home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 31 / CD Expert nº 31 Jogo Unreal.iso / WorldNet / iestuff / IE3240E / IE4SHL95.CAB / mycomp.htt < prev    next >
Text File  |  1997-09-18  |  5KB  |  113 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %TEMPLATEDIR%\mycomp.htt 
  4.  -->
  5.  
  6. <html>
  7.    <head>
  8.       <script language="JavaScript" for="FileList" event="SelectionChanged">
  9.          var L_TotalSize_Text = "Capacity: ";
  10.          var L_UsedSpace_Text = "Used: ";
  11.          var L_FreeSpace_Text = "Free: ";
  12.          var items            = FileList.FocusedItem;
  13.          var fldr             = FileList.Folder;
  14.          var text;
  15.          var data;
  16.  
  17.          // name
  18.          text = "<b>" + fldr.GetDetailsOf(items, 0) + "</b><br>";
  19.  
  20.          // type
  21.          text += fldr.GetDetailsOf(items, 1);
  22.  
  23.          // tip?
  24.          data = fldr.GetDetailsOf(items, -1);
  25.          if (data != "" && data != name)
  26.             text += "<br><br>" + data;
  27.  
  28.          // drive
  29.          if (PieChart.displayFile(items.Path)) {
  30.             text += "<br><br><br>" + L_TotalSize_Text + PieChart.totalSpace;
  31.             text += "<br><br><table bgcolor=buttonface width=12 height=12 border=1 bordercolordark=black bordercolorlight=black align=left><td></td></table> " + L_UsedSpace_Text + PieChart.usedSpace;
  32.             text += "<br><br><table bgcolor=buttonhighlight width=12 height=12 border=1 bordercolordark=black bordercolorlight=black align=left><td></td></table> " + L_FreeSpace_Text + PieChart.freeSpace;
  33.             PieChart.style.display = "";
  34.          }
  35.          else
  36.             PieChart.style.display = "none";
  37.  
  38.          SPAN1.innerHTML = text;
  39.       </script>
  40.  
  41.       <script>
  42.          function fixSize() {
  43.             var hideTop = 200
  44.             var hideLeft = 400
  45.             var ch = document.body.clientHeight
  46.             var cw = document.body.clientWidth
  47.             if (hideTop > ch) {
  48.                document.all.heading.visibility = "hidden"
  49.                document.all.FileList.style.pixelTop = 0
  50.                document.all.panel.style.pixelTop = 0
  51.             } else {
  52.                document.all.heading.visibility = "visible"
  53.                document.all.FileList.style.top = (document.all.heading.offsetHeight - 32) + "px"
  54.                document.all.panel.style.top = (document.all.heading.offsetHeight) + "px"
  55.                document.all.rule.style.width = (cw - 84) + "px"        
  56.             }
  57.             if (hideLeft > cw) {
  58.                document.all.panel.visibility = "hidden"
  59.                document.all.FileList.style.pixelLeft = 0
  60.                document.all.FileList.style.pixelTop = document.all.panel.style.pixelTop;
  61.             } else {
  62.                document.all.panel.visibility = "visible"
  63.                document.all.FileList.style.pixelLeft = document.all.panel.style.pixelWidth
  64.             }
  65.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft
  66.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop
  67.             document.all.panel.style.pixelHeight = ch - document.all.panel.style.pixelTop
  68.          }
  69.       </script>
  70.    </head>
  71.  
  72.    <body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 scroll=no onload="fixSize()">
  73.       <div ID="heading" style="position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/mycomp.gif) no-repeat">
  74.          <p style="margin-left: 80px; padding-left: 20px; margin-top: 16px">
  75.          <table>
  76.             <tr>
  77.                <td nowrap>
  78.                   <font style="font: 16pt/16pt verdana; font-weight: bold; color: #0099FF">
  79.                      <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  80.                      %THISDIRNAME%
  81.                      <!--webbot bot="HTMLMarkup" endspan -->
  82.                   </font>
  83.                </td>
  84.             </tr>
  85.          </table>
  86.          <hr ID="rule" style="position: absolute; top: 44px; left: 84px" size=1px color=black>
  87.       </div>
  88.  
  89.       <div ID="panel" style="position: absolute; top: 88px; width: 30%; background: window; overflow: auto">
  90.          <p style="margin-left: 20px; margin-top: 8px; margin-right: 8px">
  91.          <font style="font: 8pt/10pt verdana; font-weight: normal; color: text">
  92.             <span id="SPAN1">
  93.                Select an icon to view its description.
  94.             </span>
  95.             <br><br><br>
  96.             <object id="PieChart"
  97.                classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92"
  98.                style="width: 100px; height: 50px; display: none">
  99.             </object>
  100.          </font>
  101.       </div>
  102.  
  103.       <object id="FileList" border=0 tabindex=1
  104.          classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  105.          style="position: absolute; left: 30%; top: 88px; width: 70%; height: 100%">
  106.       </object>
  107.  
  108.       <script language="JavaScript">
  109.          window.onresize = fixSize;
  110.       </script>
  111.    </body>
  112. </html>
  113.